package com.diankangwo.factory.service.impl;

import com.diankangwo.factory.dao.TdRefundMoneyMapper;
import com.diankangwo.factory.entity.TdRefundMoney;
import com.diankangwo.factory.service.TdRefundMoneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("TdRefundMoneyService")
public class TdRefundMoneyServiceImpl implements TdRefundMoneyService {

    @Autowired
    private TdRefundMoneyMapper tdRefundMoneyMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tdRefundMoneyMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TdRefundMoney record) {
        return tdRefundMoneyMapper.insert(record);
    }

    @Override
    public int insertSelective(TdRefundMoney record) {
        return tdRefundMoneyMapper.insertSelective(record);
    }

    @Override
    public TdRefundMoney selectByPrimaryKey(Integer id) {
        return tdRefundMoneyMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TdRefundMoney record) {
        return tdRefundMoneyMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TdRefundMoney record) {
        return tdRefundMoneyMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TdRefundMoney> queryList(Map<String, Object> map) {
        return tdRefundMoneyMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tdRefundMoneyMapper.queryTotal(map);
    }
}
